package day0530;

import java.util.Scanner;

//    8 = 10.5 + 10.5 +   4  +  4 + 4 +  4  + 4 + 4  (55)
//    8=    2*10.5    +  (age-2)*4
//    1=    age*10.5
//    8 = (8-2)*4  +  10.5*2   (55)
//    2 = 10.5 + 10.5  (25)
public class Test1 {
    public static void main(String[] args) {
        Scanner  s=new Scanner(System.in);
        int age=s.nextInt();//1.定义一个变量age用来表示小狗的年龄8
        if(age>2){//2.判断年龄是否大于2
            //3.如果年龄值大于2就用后边公式计算： 2*10.5    +  (age-2)*4
            System.out.println(2*10.5    +  (age-2)*4);
        }else if(0<age && age<=2){
            System.out.println(age*10.5);
        }else{
            System.out.println("年龄超出正常范围");
        }
    }
}


